package com.baichang.taoshunda.entity;

import com.baichang.framework.annotation.jdbc.Generator;
import com.baichang.framework.annotation.jdbc.Table;
import com.baichang.framework.annotation.jdbc.Id;
import com.baichang.framework.entity.BaseEntity;

import java.util.Date;
import java.math.BigDecimal;


@Table(name = "t_red_packet")
public class RedPacket extends BaseEntity {

    private Integer id;
    /**
     * 商家发的红包金额
     **/
    private BigDecimal allMoney;
    /**
     * 发布红包的商家
     **/
    private Integer companyId;
    /**
     * 发布红包的
     **/
    private Date created;
    /**
     * 总个数
     **/
    private Integer allNumber;
    /**
     * 剩余个数
     **/
    private Integer number;
    /**
     * 历经时长
     **/
    private Integer timeLength;
    /**
     * 支付方式
     **/
    private Integer payType;
    /**
     * 内容
     **/
    private String content;
    /**
     * 是否抢完
     **/
    private Integer isComplete;
    /**
     * 状态
     **/
    private Integer status;
    /**
     * 城市編號
     **/
    private Integer cityId;

    @Id
    @Generator
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 商家发的红包金额
     **/
    public BigDecimal getAllMoney() {
        return allMoney;
    }

    public void setAllMoney(BigDecimal allMoney) {
        this.allMoney = allMoney;
    }

    /**
     * 发布红包的商家
     **/
    public Integer getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    /**
     * 发布红包的
     **/
    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    /**
     * 总个数
     **/
    public Integer getAllNumber() {
        return allNumber;
    }

    public void setAllNumber(Integer allNumber) {
        this.allNumber = allNumber;
    }

    /**
     * 剩余个数
     **/
    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    /**
     * 历经时长
     **/
    public Integer getTimeLength() {
        return timeLength;
    }

    public void setTimeLength(Integer timeLength) {
        this.timeLength = timeLength;
    }

    /**
     * 内容
     **/
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    /**
     * 是否抢完
     **/
    public Integer getIsComplete() {
        return isComplete;
    }

    public void setIsComplete(Integer isComplete) {
        this.isComplete = isComplete;
    }

    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }
}